package gui;

import javax.swing.*;

import data.User;

public class DeleteUser extends JPanel{
	private JRadioButton rdbtnNewRadioButton;
	private JRadioButton rdbtnNewRadioButton_1;
	private JRadioButton rdbtnNewRadioButton_2;
	private JRadioButton rdbtnNewRadioButton_3;
	private JButton btnSubmit;
	private JLabel lblWhichUserDo;
	public DeleteUser() {
		setLayout(null);
		
		rdbtnNewRadioButton = new JRadioButton("New radio button");
		rdbtnNewRadioButton.setBounds(70, 90, 109, 23);
		add(rdbtnNewRadioButton);
		
		rdbtnNewRadioButton_1 = new JRadioButton("New radio button");
		rdbtnNewRadioButton_1.setBounds(250, 90, 109, 23);
		add(rdbtnNewRadioButton_1);
		
		rdbtnNewRadioButton_2 = new JRadioButton("New radio button");
		rdbtnNewRadioButton_2.setBounds(70, 140, 109, 23);
		add(rdbtnNewRadioButton_2);
		
		rdbtnNewRadioButton_3 = new JRadioButton("New radio button");
		rdbtnNewRadioButton_3.setBounds(250, 140, 109, 23);
		add(rdbtnNewRadioButton_3);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setBounds(160, 222, 91, 23);
		add(btnSubmit);
		
		lblWhichUserDo = new JLabel("Which user do you want to delete?");
		lblWhichUserDo.setBounds(141, 30, 167, 14);
		add(lblWhichUserDo);
	}
	
//	public void deleteUser(){
//		screen.displayMessage("Input username to delete: ");
//		int username = keypad.getInput(15); // input username delete
//		User user = getUsers(username); // gets a username from the arraylist if exists in arraylist
//		if(user != null){ // if user isn't null - go on
//
//			if (!user.isAdmin){ // if username isn't an admin - go on
//
//				userList.remove(user); // removes the current username from the arraylist
//				screen.displayMessageLine("User deleted");
//			}
//			else{
//				screen.displayMessageLine("Cannot remove admin");
//			}
//		}
//		else {
//			screen.displayMessageLine("User does not exist");
//		}
//	}

}
